/*
 * @Author: wuqingchun
 * @Date: 2024-06-22 14:16:32
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-06-29 20:49:10
 */
#ifndef __HTTP_EVENT_H__
#define __HTTP_EVENT_H__

#include "http.h"

enum class EEventType
{
    EVENT_IN,
    EVENT_OUT,
};

class IHTTPEvent
{
public:
    virtual int HandleIn() = 0;
    virtual int HandleOut() = 0;
    virtual void HandleError() = 0;
    virtual int GetEventFd() = 0;

    virtual int Send(const HTTP_BUF_S& refData) = 0;
};

#endif //__HTTP_EVENT_H__